﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace ProjectCore.Domain.Model.Entity
{
    public  class Admin
    {
        //设置主键
        [Key]
        public int AdminID { get; set; }

        //登录名
        [StringLength(50)]
        public string LoginName { get; set; }

        //密码
        [StringLength(160)]
        public string Pwd { get; set; }

        //管理员姓名
        [StringLength(50)]
        public string AdminName { get; set; }

        //角色ID
        public int RoleID { get; set; }

        //邮箱
        [StringLength(50)]
        public string Email { get; set; }

        //管理员头像外键
        public int Photo { get; set; }

        //创建时间
        public DateTime CreateTime { get; set; }

        //显示顺序
        public int Sort { get; set; }

        //手机号
        [StringLength(50)]
        public string Tel { get; set; }

        //备用
        [StringLength(50)]
        public string Spare { get; set; }












        

    }
}
